<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站后台管理系统</title>
<meta name="keywords" content="">
<meta name="description" content="">
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="css/ie6.css"/>
<![endif]-->
<link rel="stylesheet" type="text/css"  href="../../../../Public/admin/css/style_v2.0.css"/>
<link rel="stylesheet" type="text/css"  href="../../../../Public/layui/css/layui.css">
<link rel="stylesheet" type="text/css"  href="__PUBLIC__/admin/css/style_v2.0.css"/>
<link rel="stylesheet" type="text/css"  href="__PUBLIC__/layui/css/layui.css">
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/layui/layui.js"></script>
</head>
<body>
<div class="position mt10">当前位置：<a href="{:U('Index/main')}">后台首页</a> > <a href="{:U('Finance/workflow')}">工作流水</a>  >  流水信息修改</div>
<div id="container">
  <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
      <legend>流水信息修改</legend>
  </fieldset>
  
<div class="c"></div> 
<form name=reg action="{:U('Admin/Finance/workflow_update',array('fid' => $data['fid']))}"  enctype="multipart/form-data"  method="post"  class="layui-form" id="finance_add" >
<div class="layui-form">
     <table class="layui-table">
    <tr>
	  <td width="20%" align="right"><font color=red size="1">·</font>打款时间：</td>
	  <td width="80%">
      <span class="table_span" style="width:200px; float:left;"><input name="paytime" type="text" id="paytime" value="{$data.paytime|date='Y-m-d',###}" required  lay-verify="" placeholder="打款时间" autocomplete="off" class="layui-input ico-date"></span>
      <span class="table_txt"></span>
      </td>
    </tr>
    <tr>
	  <td width="20%" align="right"><font color=red size="1">·</font>事由：</td>
	  <td width="80%">
      <span class="table_span" style="width:300px; float:left;"><textarea name="shiyou" type="text" id="shiyou" value=""  lay-verify="" placeholder="打款事由" autocomplete="off" class="layui-textarea" style="height:60px;">{$data.shiyou}</textarea></span>
      </td>
    </tr>
    <tr>
	  <td width="20%" align="right">打款金额：</td>
	  <td width="80%">
      <span class="table_txt">收入:</span>
      <span class="table_span" style="width:100px; float:left;">
          <input name="income" type="text" id="income" value="{$data.income}"  lay-verify="" placeholder="收入" autocomplete="off" class="layui-input">
      </span>
      <span class="table_txt">支出</span>
      <span class="table_span" style="width:100px; float:left;">
          <input name="outlay" type="text" id="outlay" value="{$data.outlay}"   lay-verify="" placeholder="支出" autocomplete="off" class="layui-input">
      </span>
      </td>
    </tr>
    <tr>
	  <td width="20%" align="right">打款方式：</td>
	  <td width="80%">
      <span class="table_span" style="width:300px; float:left;">
      <input name="way" type="text" id="way" value="{$data.way}"  lay-verify="" placeholder="打款方式" autocomplete="off" class="layui-input"></span>
      <span class="table_txt"></span>
      </td>
    </tr>
    <tr>
	  <td width="20%" align="right">联系人：</td>
	  <td width="80%">
      <span class="table_span" style="width:200px; float:left;">
      <input name="linkman" type="text" id="linkman" value="{$data.linkman}"  lay-verify="" placeholder="联系人" autocomplete="off" class="layui-input"></span>
      <span class="table_txt"></span>
      </td>
    </tr>
    <tr>
	  <td width="20%" align="right"><font color=red size="1">·</font>备注：</td>
	  <td width="80%">
      <span class="table_span" style="width:300px; float:left;"><textarea name="content" type="text" id="content" value=""  lay-verify="" placeholder="备注" autocomplete="off" class="layui-textarea" style="height:60px;">{$data.content}</textarea></span>
      </td>
    </tr>
     <tr>
	  <td align="right"><font color=red size="1">·</font>添加时间：</td>
	  <td><span class="table_span" style="width:200px; float:left;"><input name="inputtime" type="text" id="inputtime" value="{$data.inputtime|date='Y-m-d H:i:s',###}"  autocomplete="off" class="layui-input ico-date" ></span></td>
	  </tr>
    <tr> 
	  <td colspan=2 align="center" valign="middle">
		<input type="submit" name="Submit" value="确&nbsp; &nbsp;定" class="layui-btn" >
		<input type="reset" name="Submit2" value="重　置" class="layui-btn layui-btn-primary" >		 </td>
	</tr>
    </table>
</div>
</form>
</div>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
</body>
</html>
<script>

//Demo
layui.use(['form','laydate'], function(){
  var form = layui.form
  ,laydate = layui.laydate;
   //,layer = layui.layer
  laydate.render({
    elem: '#inputtime'
	,type: 'datetime'
  });
  laydate.render({
    elem: '#paytime'
	,type:'date'
  });
   
   form.verify({
        groupname: function(value){
		    if(value !="" || value.length  >0){
			    
			}else{
			   return '请填写分组名称';
			}
		}   
	   ,listorder: function(value){
	       if(value != ""){
			   if(!new RegExp(/^\d*$/).test(value)){
		            return '必须是数字0';
		       }
		   }
	   }
   });
   
   
  //监听提交
  form.on('submit(formSearch)', function(data){
    //layer.msg(JSON.stringify(data.field));
	title: '最终的提交信息'
	return true;
  });

});

</script>